summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/information/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/evcp/(evcp)/information/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/information/page.tsx45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/information/page.tsx b/app/[lng]/evcp/(evcp)/information/page.tsx
new file mode 100644
index 00000000..4027ab8a
--- /dev/null
+++ b/app/[lng]/evcp/(evcp)/information/page.tsx
@@ -0,0 +1,45 @@
+import * as React from "react"
+import type { Metadata } from "next"
+import { unstable_noStore as noStore } from "next/cache"
+
+import { Shell } from "@/components/shell"
+import { getInformationLists } from "@/lib/information/service"
+import { InformationTable } from "@/lib/information/table/information-table"
+import { searchParamsInformationCache } from "@/lib/information/validations"
+import type { SearchParams } from "@/types/table"
+import { InformationButton } from "@/components/information/information-button"
+
+export const metadata: Metadata = {
+ title: "인포메이션 관리",
+ description: "페이지별 도움말 및 첨부파일을 관리합니다.",
+}
+
+interface InformationPageProps {
+ searchParams: Promise<SearchParams>
+}
+
+export default async function InformationPage({ searchParams }: InformationPageProps) {
+ noStore()
+
+ const search = await searchParamsInformationCache.parse(await searchParams)
+
+ const informationPromise = getInformationLists(search)
+
+ return (
+ <Shell className="gap-2">
+ <div className="flex items-center justify-between space-y-2">
+ <div className="flex items-center justify-between space-y-2">
+ <div>
+ <div className="flex items-center gap-2">
+ <h2 className="text-2xl font-bold tracking-tight">
+ 도움말 관리
+ </h2>
+ <InformationButton pageCode="evcp/information" />
+ </div>
+ </div>
+ </div>
+ </div>
+ <InformationTable promises={informationPromise} />
+ </Shell>
+ )
+} \ No newline at end of file